package com.ttwm.service;

import com.ttwm.dao.FoodDao;
import com.ttwm.pojo.Food;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FoodServiceImp implements FoodService{
    @Autowired
    private FoodDao foodDao;

    @Override
    public List<Food> foodAll() {
        return foodDao.foodAll();
    }

    @Override
    public Food foodOne(int id) {
        return foodDao.foodOne(id);
    }
}
